#include <iostream>
#include <map>
#include <utility>
#include "Menu.h"


using namespace std;
using namespace Homework;

namespace Homework
{
Menu::Menu(void)
{
	check = 1;
}

Menu::~Menu()
{
}

void Menu::Display()
{
	int place=0;
	int counter = 1;
	map<PType, details>::iterator pos;

	for (pos=food.begin();  pos!=food.end(); pos++)
	{
		check = CheckProduct(place);
		
		if (check == 1)
		{
			cout << "Press " << counter << " for " << names[place] << endl;
			
		}
		place ++;
		counter ++;
	}

	cout << "Press " << counter << " to exit" << endl;
}
}